
#include "main.h"

/* FreeRTOS */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "list.h"

static TaskHandle_t xHandleTaskLedToggle = NULL;

/* User create task */
static void UserTaskCreate(void);

/* Led toggle task */
void vTaskLedToggle(void *pvParameters);

int main(void)
{
	systick_config();
    APM_MINI_LEDInit(LED2);

   UserTaskCreate();

   vTaskStartScheduler();

    while(1)
    {

    }
}

static void UserTaskCreate(void)
{
    xTaskCreate(vTaskLedToggle,
                "TaskLedToggle",
                 128,
                 NULL,
                 0,
                 &xHandleTaskLedToggle);

}
void vTaskLedToggle(void *pvParameters)
{
    while(1)
    {
        /* Toggle LED2 */
        APM_MINI_LEDToggle();
        /* Task blocking time Delay */
        vTaskDelay(100);
    }
}

